package com.lhn.mapper;

import com.lhn.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lhn
 * @date 2024-10-11 23:04
 */

@Mapper
public interface UserMapper {
    List<User> findAll(int index, int limit);
    User findById(long id);
    void save(User user);
    void update(User user);
    void deleteById(long id);
    int count();
}
